#ifndef SEARCHWIDGET_H
#define SEARCHWIDGET_H

#include "searchbox.h"

#include <QWidget>
#include <QScrollArea>
#include <QString>
#include <QLabel>

#include <WhaleStreamTab>
#include <WhaleTwitterConnect>
#include <WhaleTweetEntry>

class SearchTab : public WhaleStreamTab {
    Q_OBJECT

    public:
        SearchTab( QString query = "", QWidget * parent = 0 );
        QLineEdit * searchBox();
        QString lastQuery();
        QVariant revokers();
        WhaleTweetEntry * newEntry( QVariantMap data, QString streamName );

    public slots:
        void search();

    private:
        QLabel * mLoadingLabel;
        QScrollArea * mScrollArea;
        SearchBox * mSearchBox;
        QString mLastQuery;
        WhaleTwitterConnect * mConnector;
};

#endif
